package com.qf.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ObjectMapperConfig {
    /**
     * 将ObjectMapper  实例化到spring的容器中
     */
    @Bean
    public ObjectMapper objectMapper(){
        return new ObjectMapper();
    }
}
